#include "splite.h"
#include "ui_splite.h"

splite::splite(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::splite)
{
    ui->setupUi(this);
    connect(ui->pushButton_right,&QPushButton::clicked,[=]()
    {
        emit sign_spliteinfo(ui->lineEdit_x->text().toInt(),ui->lineEdit_y->text().toInt());
        this->close();
    });
    connect(ui->pushButton_cancel,&QPushButton::clicked,[=]()
    {
        this->close();
    });
}

splite::~splite()
{
    delete ui;
}
